<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            background-color: lightgray;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
        }
        span {
            font-size: 24px;
            font-weight: bold;
            
        }
    </style>
</head>
<body>
    <div><span id="text">faze up！！！</span></div>

    <script>
        function info() {
            var text = document.getElementById('text');
            text.onmouseover = function() {
                this.style.color = 'blue';
                console.log("鼠标移入文本");
            };
            text.onmouseout = function() {
                this.style.color = 'black';
                console.log("鼠标移出文本");
            };
        }
    </script>
</body>
</html>
